module.exports = function(io, Data) {
    function admin(socket) {

        io.emit('this', {
            will: 'be received by everyone'
        });

        socket.on('private message', function(from, msg) {
            console.log('I received a private message by ', from, ' saying ', msg);
        });

        socket.on('disconnect', function() {
            io.emit('user disconnected');
        });
    };
    return admin;
};